package myBinaryTree;

public class Test {
    public static void main(String[] args) {
        MybinaryTree mybinaryTree = new MybinaryTree();
        MybinaryTree.TreeNode node = mybinaryTree.create();
        mybinaryTree.preOrder(node);
        System.out.println();
        mybinaryTree.inOrder(node);
        System.out.println();
        mybinaryTree.postOrder(node);
        System.out.println();
        System.out.println(mybinaryTree.getNodeSize1(node));
        System.out.println(mybinaryTree.getNodeSize2(node));
        System.out.println(mybinaryTree.getLeafSize1(node));
        System.out.println(mybinaryTree.getLeafSize2(node));
        System.out.println("树的高度 ：" + mybinaryTree.getHeight(node));
        System.out.println(mybinaryTree.find(node, 'G'));
        System.out.println("该树是完全二叉树" + mybinaryTree.isCompeleteTree(node));
    }

}
